package com.jvm;

public class Demo02 {

    public static void main(String[] args) throws InterruptedException {
        System.out.println("1程序开始");
        Thread.currentThread().sleep(10000);

        System.out.println("2创建数组");
        byte[] bytes = new byte[1024 * 1024 * 10];

        Thread.currentThread().sleep(10000);

        System.out.println("3垃圾回收");
        System.gc();

        Thread.currentThread().sleep(10000);

        System.out.println("4程序结束");
    }
}
